package cn.itcast.order.pojo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author danDong
 * @date 2025-02-24 15:29:03
 */

@Data
public class Queue {
    private List<String> queueContent = new ArrayList<>();

    public void addQueue(String queueContent){
        this.queueContent.add(queueContent);
    }
    public void removeQueue(){
        this.queueContent.remove(0);
    }
    public String getQueueContent(){
        return this.queueContent.get(0);
    }
    public void getAll(){
        queueContent.forEach(System.out::println);
    }
}
